package com.dubbo.service.impl;

import java.util.Arrays;
import java.util.List;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo.bean.UserAddress;
import com.dubbo.service.UserService;

@Component
//@Service
public class UserServiceImpl implements UserService {
	@Override
	public List<UserAddress> findAddressList(Integer userId) {
		UserAddress addr1 = new UserAddress(1,"福建福州");
		UserAddress addr2 = new UserAddress(2,"福建泉州");
		return Arrays.asList(addr1,addr2);
	}

}
